package com.bestcem.xm.user.grpc.client.convert;

import com.bestcem.xm.openplatform.grpc.v1.services.ApiCallCert;
import com.bestcem.xm.user.grpc.client.dto.OpenPlatformApiCallCertDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

/**
 * 开放平台grpc服务转换类
 *
 * @author wangyunyun <yunyun.wang@idiaoyan.com>
 * @version v1.0
 * @date 2022/6/9 12:54
 */
@Mapper(componentModel = "spring")
public interface BaseOpenplatformGrpcConvert {

    @Mapping(target = "aesKey", source = "AESKey")
    @Mapping(target = "signatureKey", source = "signatureKey")
    OpenPlatformApiCallCertDTO apiCallCertGrpc2Dto(ApiCallCert apiCallCert);

}
